extends Area2D

@export var unlock_tips:Array[int] = []

func _ready() -> void:
	body_entered.connect(on_body_entered)


func on_body_entered(body: Player) -> void:
	DialogHandler.current_stage.current_npc.action()
	Global.player.is_dead = false
	if !unlock_tips.is_empty():
		for i in unlock_tips:
			GameEvents.unlock_tip.emit(i)
	queue_free()
